<?php

class Session
{
    public static function getSessionVars()
    {
	return $_SESSION;
    }

    public static function getSessionVar($key)
    {
	if (isset($_SESSION[$key])) return $_SESSION[$key];
	return "";
    }
            
    public static function setSessionVar($key, $value)
    {
	$_SESSION[$key] = $value;
    }
    
    public static function destroy()
    {
	session_unset();
	session_destroy();
    }
}

?>